local transform;

GamePlayPanel = {};
local this = GamePlayPanel;

--启动事件--
function GamePlayPanel.Awake(obj)
	transform = obj.transform;
	this.InitPanel();
	logWarn("Awake lua--->>"..transform.name);
end

--初始化面板--
function GamePlayPanel.InitPanel()
	this.GameOver = transform:Find("GameOver");
	this.RestartBtn = this.GameOver:Find("Window/Restart").gameObject;
	this.QuitBtn = this.GameOver:Find("Window/Quit").gameObject;
	this.QuitViewBtn = transform:Find("QuitViewBtn").gameObject;
	this.Scoreboard = transform:Find("Scoreboard");
	this.DeathText = transform:Find("DeathText"):GetComponent('Text');
	this.SpawnDelayText = transform:Find("SpawnDelayText"):GetComponent('Text');
	this.ResultText = this.GameOver:Find("Window/Thumbnail/Text"):GetComponent('Text');
	this.QuitViewBtn = transform:Find("QuitViewBtn").gameObject;
	--this.ETCBtn = transform:Find()
end


--单击事件--
function GamePlayPanel.OnDestroy()
	logWarn("OnDestroy---->>>");
end

